package com.wash.shoes.controller.pc;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.R;
import com.wash.shoes.domain.dto.CheckHistoryDto;
import com.wash.shoes.entity.CheckHistoryPo;
import com.wash.shoes.service.CheckHistoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ljg
 * @since 2024-10-01
 */
@Api(tags = {"PC-核销记录"})
@RestController
@RequestMapping({"/checkHistory", "/dev-api/checkHistory"})
public class CheckHistoryController {

    @Autowired
    CheckHistoryService checkHistoryService;

    @ApiOperation("核销记录列表")
    @PostMapping("/list")
    public R<Page<CheckHistoryPo>> pageList(@RequestBody CheckHistoryDto checkHistoryDto) {
        Page<CheckHistoryPo> page = checkHistoryService.pageList(checkHistoryDto);
        return R.ok(page);
    }

}

